|
|
|
|
|
|
|
To review the material you learned in this chapter, respond to the following questions and check your answers against the ones provided in Appendix C. |
|
|
|
|
|
|
|
|
1. What are the advantages and disadvantages of using the data control rather than code to manage Visual Basic database applications? |
|
|
|
|
|
|
|
|
2. What is the main advantage of using code to produce data entry forms? |
|
|
|
|
|
|
|
|
3. Which approach to searching for a data recordthe Move, Find, or Seek methodmost resembles the SQL WHERE clause? |
|
|
|
|
|
|
|
|
4. On what kind of Recordsets can the Seek method be used to search for records? |
|
|
|
|
|
|
|
|
5. What are the four Move methods that you can apply to the Recordset object? |
|
|
|
|
|
|
|
|
6. Which of the Find methods starts its search from the beginning of the Recordset? Which of the Find methods starts its search from the end of the Recordset? |
|
|
|
|
|
|
|
|
7. Which item do you use to remember a specific location in a dataset? |
|
|
|
|
|
|
|
|
8. What is the fastest search method to locate a record in a dataset? |
|
|
|
|
|
|
|
|
9. How do you create a control array in Visual Basic? |
|
|
|
|
|
|
|
|
10. What method(s) do you need to invoke prior to using the Update method to write to a dataset? |
|
|
|
|
|
|
|
|
Assume that you complete the CompanyMaster application and add the State/Province form as discussed in this lesson. After distributing this application to your users, you quickly discover that they are having trouble obtaining zip codes for the companies they enter. You decide to help them by adding a form to this application that lists zip codes and their city equivalents. |
|
|
|
|
|
|
|
|
Use code to modify the CompanyMaster application so that users can select an item from the List menu (call this item ZipCity) that displays zip codes (field name of Zip) and city (field name of City). Use Visdata to add a data table (ZipCity) to MASTER.MDB. |
|
|
|
|
|